<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>media媒体查询使用</title>
    <style>
        div{
            background-color: yellow;
            color:black;
        }
        @media screen and (width:1920px) {
            div{
                background-color: red;
            }
        }
        @media screen and (width:1366px) {
            div{
                background-color: green;
            }
        }
    </style>
</head>
<body>
    <div>media媒体查询使用</div>
</body>
</html>